package com.bit.forumdemo.mapper.block_mapper;

import com.bit.forumdemo.pojo.block_pojo.Block;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * 版块mapper
 */
@Repository
public interface BlockMapper {


    /**
     * 添加版块
     * @param record
     * @return
     */
    int insert(Block record);

    /**
     * 根据主键查询版块详情
     * @param blockId
     * @return
     */
    Block selectByPrimaryKey(Integer blockId);

    /**
     * 查询所有版块
     * @return
     */
    List<Block> selectAll();

    /**
     * 通过主键编辑版块信息
     * @param record
     * @return
     */
    int updateByPrimaryKey(Block record);
}
